<template>
	<view style="padding-bottom: 100rpx;">
		<liuyuno-tabs pingfen :tabData="list" :activeIndex="current" @tabClick='tabClick' />
		<view class="body" style="padding: 0rpx 30rpx 30rpx 30rpx;">
			<myzb :quan="quan" v-if="current==0" />
			<myjp :quan="quan" v-if="current==1" />
			<myxl :quan="quan" v-if="current==2" />
			<myzl :quan="quan" v-if="current==3" />
			<myxxk :quan="quan" v-if="current==4" />
			<mysp :quan="quan" v-if="current==5" />
		</view>
	</view>
</template>
<script>
	import myzb from './components/componentstg/myzb.vue'
	import myjp from './components/componentstg/myjp.vue'
	import myxl from './components/componentstg/myxl.vue'
	import myzl from './components/componentstg/myzl.vue'
	import myxxk from './components/componentstg/myxxk.vue'
	import mysp from './components/componentstg/mysp.vue'

	export default {
		components: {
			myzb,
			myjp,
			myxl,
			myxxk,
			myzl,
			mysp
		},
		data() {
			return {
				quan: 1,
				list: [{
						name: '直播',
					}, {
						name: '精品课程',
					}, {
						name: '系列课',
					}, {
						name: '专栏',
					}, {
						name: '线下课',
					}, {
						name: '商品',
					}

				],
				current: 0
			};
		},
		methods: {
			tabClick(a, b) {
				this.current = b
			}
		}
	}
</script>

<style lang="scss">
	.foot {
		padding: 0 20rpx 0 20rpx;
		width: 100%;
		height: 98rpx;
		position: fixed;
		display: flex;
		justify-content: space-between;
		align-items: center;
		background-color: #FFFFFF;
		border-top: 1rpx solid #EFEFEF;
		;
		bottom: 0;

		.foot_2 {
			font-size: 30rpx;
			font-family: Source Han Sans CN;
			font-weight: 500;
			color: #703F00;
			opacity: 1;
			width: 200rpx;
			text-align: center;
			line-height: 68rpx;
			height: 68rpx;
			background: #FFD500;
			opacity: 1;
			border-radius: 44rpx;
		}

		.foot_1 {
			display: flex;
			align-items: center;

			text {
				display: inline-block;
				margin-left: 10rpx;
				font-size: 30rpx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: #333333;
				opacity: 1;
			}

			image {
				width: 40rpx;
				height: 40rpx;
			}
		}
	}
</style>
